﻿namespace NTLib.Core.Exceptions.Configuration
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;


    /// <summary>
    /// Raise when the method LoadConfiguration of the interface <see cref="NTLib.Core.Configuration.IConfigurable"/> is called when the instance is already configure.
    /// </summary>
    /// <seealso cref="System.Exception" />
    public sealed class AlreadyConfiguredException : ConfigurationException
    {
        #region Ctor

        /// <summary>
        /// Initializes a new instance of the <see cref="NTLib.Core.Exceptions.Configuration.AlreadyConfiguredException"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="innerexception">The inner exception.</param>
        public AlreadyConfiguredException(string message = null, Exception innerexception = null)
            : base(message, innerexception)
        {
        }

        #endregion
    }
}
